﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Web.Controller" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%var site = v.data("site") as m_site; %>
<%var lngs = site.lngs; %>
<%var dlngs = site.dlngs; %>
<%var read = v.data("read") as System.Data.DataRow; %>
<%var typeread = v.data("typeread") as TypeList; %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=0" />
    <link rel="stylesheet" type="text/css" href="#{site.templates}css/css.css" />
    <link rel="stylesheet" type="text/css" href="#{site.templates}css/style.css" />
    <title>#{pageTitle}</title>
    <meta name="Keywords" content="#{pageKeywords}" />
    <meta name="description" content="#{pageDescription}" />
</head>
<body>
    <div class="body" id="products">
        #{top}
        <div class="productsTitle"></div>
        <div class="main">
            <div class="box">
                <div class="crumbs">#{site.position}: <a href="#{site.dir}">#{site.hometitle}</a>&gt;#{daohang}</div>
                <div class="left">
                    <div class="t1">Product Class </div>
                    <div class="t2">
                        <ul>
                            <%var list = YBBCommon.GetListMenu(typeread); %>
                            <%foreach(var row in list){ %>
                            <li><a href="<%=UrlLinkHelp.GetArticleLink(dlngs,lngs,row.Id) %>"><%=row.typename %></a></li><%} %>
                        </ul>
                    </div>
                </div>

                <div class="right">
                    <%var pagelist = v.data("pagelist") as DataPage<Document>; %>
                    
                    <ul>
                        
                        <%foreach (var row in pagelist.Results) { %>
                        <li>
                            <div class="liBox">
                                <div class="img"><a href="<%=UrlLinkHelp.GetArticleReadLink(dlngs,lngs,row.Id) %>">
                                    <img src="<%=YBBCommon.CacheImg(row.pic,"190|190||") %>" /></a></div>
                                <p><a href="<%=UrlLinkHelp.GetArticleReadLink(dlngs,lngs,row.Id) %>"><%=row.title %></a></p>
                                <div class="line"></div>
                            </div>
                        </li>
                        <%} %>	
                    </ul>
                    
                    <div class="right_bottom" style="text-align:center;">
			             #{page}	
		           </div>
                </div>
            </div>
        </div>
        #{bottom}
    </div>
    <script src="#{site.templates}js/main.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
